﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Configuration.aspx.cs" Inherits="SmartTag.Layouts.Configuration"
    DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <script type="text/javascript">
        function ConfirmClearConfiguration() {
            if (confirm("Are you sure you want to clear all configuration values?")) {
                return true;
            }
            else {
                return false;
            }
        }

    </script>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Smart Tag Configuration
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    <a id="onetidListHlink" href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.DefaultViewUrl,true),Response.Output);%>>
        <%SPHttpUtility.HtmlEncode(List.Title, Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow
            ID="ClusteredDirectionalSeparatorArrow1" runat="server" />
    <a href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.ParentWeb.Url + "/_layouts/listedit.aspx?List=" + List.ID.ToString(),true),Response.Output);%>>
        <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType1" runat="server"
            String="<%$Resources:wss,listsettings_titleintitlearea%>" LowerCase="false" />
    </a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2"
        runat="server" />        
    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="SmartTag settings"
        EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="ms-descriptiontext">
        <tbody>
            <tr id="ctl00_PlaceHolderMain_ctl00_tablerow1">
                <td height="1" colspan="2" class="ms-sectionline">
                    <img width="1" height="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
            <tr>
                <td valign="top" class="ms-descriptiontext">
                    <table width="100%" cellspacing="0" cellpadding="1" border="0">
                        <tbody>
                            <tr>
                                <td valign="top" height="22" style="padding-top: 4px;" class="ms-sectionheader">
                                    <h3 class="ms-standardheader ms-inputformheader">
                                        SmartTag enabled
                                    </h3>
                                </td>
                            </tr>
                            <tr>
                                <td class="ms-descriptiontext ms-inputformdescription">
                                    You can enable or disable SmartTag on this document library. Please select Yes/No
                                    option. Once you select an option click "OK" to save configuration. Click "Cancel"
                                    to return to previous page. Also, if you want to clear all configuration for current
                                    document library click "Clear Configuration" button.
                                </td>
                                <td>
                                    <img width="8" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <img width="150" height="19" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
                <td valign="top" align="left" class="ms-authoringcontrols ms-inputformcontrols">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td width="9px">
                                    <img width="9" height="7" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                    <img width="150" height="7" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td width="10px">
                                    <img width="10" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td class="ms-authoringcontrols">
                                    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="ms-authoringcontrols">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    <span title="Relevance">
                                                        <label>
                                                            Enable SmartTag on this document library?
                                                        </label>
                                                    </span>
                                                </td>
                                            </tr>
                                            <tr id="ctl00_PlaceHolderMain_NavigationSection_ctl01_tablerow3">
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td width="99%" class="ms-authoringcontrols">
                                                    <table width="100%" class="ms-authoringcontrols">
                                                        <tbody>
                                                            <tr>
                                                                <td nowrap="" width="50%">
                                                                    <asp:RadioButton ID="rbYes" GroupName="grpEnableSmartTag" runat="server" Text="Yes" />
                                                                </td>
                                                                <td nowrap="">
                                                                    <asp:RadioButton ID="rbNo" GroupName="grpEnableSmartTag" runat="server" Text="No" />
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <td width="10px">
                                    <img width="10" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <img width="150" height="13" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="2px" colspan="2" class="ms-sectionline">
                    <img width="1" height="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
            <tr>
                <table cellspacing="3" cellpadding="3" width="100%">
                    <tbody>
                        <tr height="10">
                            <td colspan="4" class="ms-linksectionheader" style="padding: 4px;" id="1400">
                                <h3 class="ms-standardheader">
                                    Columns to tag</h3>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="ms-descriptiontext ms-listedit-sectiondescription" id="1500"
                                valign="top">
                                Managed metadata column stores taxonomy values related to document. Following columns
                                are configured with SmartTag.
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="ms-gb">
                                <asp:Table ID="tblColumns" runat="server" BorderWidth="0" CellPadding="0" CellSpacing="0"
                                    Width="100%">
                                    <asp:TableHeaderRow>
                                        <asp:TableHeaderCell CssClass="ms-vh2-nofilter" Scope="Column" Width="25%" Text="Column (Click to edit)" />
                                        <asp:TableHeaderCell CssClass="ms-vh2-nofilter" Scope="Column" Width="25%" Text="Words to scan" />
                                        <asp:TableHeaderCell CssClass="ms-vh2-nofilter" Scope="Column" ColumnSpan="2" Text="Relevance" />
                                    </asp:TableHeaderRow>
                                </asp:Table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <table style="padding-left: 5px" cellpadding="0" cellspacing="0">
                                    <tbody>
                                        <tr>
                                            <td style="padding-top: 5px;" class="ms-descriptiontext ms-linksectionitembullet"
                                                valign="top">
                                                <span class="s4-clust" style="height: 10px; width: 10px; position: relative; display: inline-block;
                                                    overflow: hidden;">
                                                    <img style="left: -0px !important; top: -128px !important; position: absolute;" alt=""
                                                        src="/_layouts/images/fgimg.png">
                                                </span>&nbsp;
                                            </td>
                                            <td class="ms-descriptiontext ms-linksectionitemdescription" nowrap="nowrap">
                                                <asp:LinkButton runat="server" ID="lnkAddColumn" Text="Add Existing Managed Metadata Column"
                                                    PostBackUrl="AddColumn.aspx" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="padding-top: 5px;" class="ms-descriptiontext ms-linksectionitembullet"
                                                valign="top">
                                                <span class="s4-clust" style="height: 10px; width: 10px; position: relative; display: inline-block;
                                                    overflow: hidden;">
                                                    <img style="left: -0px !important; top: -128px !important; position: absolute;" alt=""
                                                        src="/_layouts/images/fgimg.png">
                                                </span>&nbsp;
                                            </td>
                                            <td class="ms-descriptiontext ms-linksectionitemdescription" nowrap="nowrap">
                                                <asp:LinkButton runat="server" ID="lnkAddMultipleColumns" Text="Add / Edit multiple columns"
                                                    PostBackUrl="AddMultipleColumns.aspx" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </tr>
            <tr>
                <td colspan="2">
                    <table width="100%" cellspacing="0" cellpadding="0">
                        <colgroup>
                            <col width="99%">
                            <col width="1%">
                        </colgroup>
                        <tbody>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td nowrap="nowrap">
                                    <asp:Button runat="server" ID="btnClearConfiguration" CssClass="ms-ButtonHeightWidth"
                                        AccessKey="X" Text="Clear Configuration" OnClientClick="return ConfirmClearConfiguration();" />
                                    <span class="ms-SpaceBetButtons" id="idSpace">
                                        <img width="60" height="1" src="/_layouts/images/blank.gif">
                                        <span class="ms-SpaceBetButtons" id="idSpace">
                                            <asp:Button runat="server" ValidationGroup="grpSubmitForm" ID="btnOk" CssClass="ms-ButtonHeightWidth"
                                                AccessKey="o" Text="OK" />
                                            <asp:Button runat="server" ID="btnCancel" CssClass="ms-ButtonHeightWidth" AccessKey="C"
                                                Text="Cancel" />
                                        </span></span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="40" colspan="2" class="ms-descriptiontext s4-notdlg">
                    <img width="1" height="40" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
